import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

export const routes = [
    {
        path: '/',
        tabName: '不出意外的开始页',
        component: HomeView,
    },
    {
        path: '/template',
        tabName: '模板语法',
        component: () => import('../views/TemplateView.vue'),
    }
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes,
})

export default router
